﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace orienta.ViewModels
{
    public class SolicitudPaso
    {
        public SolicitudPaso()
        {
            this.referencias = new List<SolicitudReferencia>();
            this.listaBandeja = new List<SolicitudBandeja>();
            this.nPlazo = 30;
        }

        public List<SolicitudBandeja> listaBandeja { get; set; } 


        //[Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Ap. Pat. Afectado")]
        public String nApePatAfect { get; set; }

        //[Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Ap. Mat. Afectado")]
        public String nApeMatAfect { get; set; }

        //[Required(ErrorMessage = "El campo {0} es obligatorio.")]
        //[Display(Name = "Nombre Afectado")]
        public String nNombreAfect { get; set; }


        public int nIdeTipoDiscap { get; set; }

        /*
        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Clase de solicitud")]
        public String sClaseSolicitud { get; set; }
        public int nIdClaseSolicitud { get; set; }

        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Tipo de solicitud")]
        public String sTipoSolicitud { get; set; }
        public int nIdTipoSolicitud { get; set; }
        */

        public int nIdePrograma { get; set; }
        public int nIdeSolic { get; set; }
        public int nIdeAfect { get; set; }

        public int nIdeSolicitud { get; set; }

        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Sumilla")]
        [RegularExpression(@"^[0-9.,--'#:a-zA-Z_áéíóúñ\s]*$", ErrorMessage = "El campo {0} tiene caracteres no validos")]
        public String sSumilla { get; set; }

       [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Accion")]
        [RegularExpression(@"^[0-9.,--'#:a-zA-Z_áéíóúñ\s]*$", ErrorMessage = "El campo {0} tiene caracteres no validos")]
        public String sAccion{ get; set; }

       
        /*
        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Accion")]
        public String sAccion { get; set; }
        */
         [Display(Name = "Para")]
        public int nIdePara { get; set; }

        public int nIdePrioridad { get; set; }


        /*Doc entrante*/

        public String nIdeTipoDocEntrante { get; set; }

        //[Required(ErrorMessage = "El campo {0} es obligatorio.")]
        //[Display(Name = "Tipo de documento entrante")]
        public String sTipoDocEntrante { get; set; }

        //[Required(ErrorMessage = "El campo {0} es obligatorio.")]
        //[Display(Name = "Numero de documento entrante")]
        public String sNroDocEntrante { get; set; }

        /*
        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [DataType(DataType.Date, ErrorMessage = "Please enter a valid date (ex: 2/14/2011)")]
        [RegularExpression(@"^\d{1,2}\/\d{1,2}\/\d{4}$", ErrorMessage = "{0} no tiene una fecha valida")]
        [Display(Name = "Fecha de doc. entrante")]
        */
        public String dtFecDocEntrante { get; set; }

        /*
        [Required(ErrorMessage = "El campo {0} es obligatorio.")]*/
        [Display(Name = "Plazo")]
        public decimal? nPlazo { get; set; }

        public decimal? nIdePeriodo { get; set; }

        [Display(Name = "Folios")]
        public decimal? nFolios { get; set; }

        public String sConfidencial { get; set; }


        public List<SolicitudReferencia> referencias { get; set; }

        //[Required(ErrorMessage = "El campo {0} es obligatorio.")]
        //[Display(Name = "Derivar")]
        public String sDerivar { get; set; }


        public String sDerivarCC { get; set; }




        
    }
}